package edu.sctu.zhoudie.mouth201505.day20150520;

/**
 * Created by user08 on 2015/5/20.
 */
import java.util.Arrays;

public class MyMainRandom {
    public static void main(String[] args) {
        MyMainRandom myMainRandom = new MyMainRandom();
        int[] nums= myMainRandom.getArray(8);
        System.out.println(Arrays.toString(nums));
    }
    public int[] getArray(int length){
        int [] nums = new int[length];

        for (int i = 0; i <nums.length; i++) {
           nums[i] = (int)(Math.random()*100);
        }
        Arrays.sort(nums);


       return nums;
    }
}